{include file="public:header" /}
<!--添加文章-->
<form id="info_form" action="{:url('User/editDo')}" method="post" enctype="multipart/form-data">
    <div class="pad_lr_10">
        <div class="col_tab">
            <ul class="J_tabs tab_but cu_li">
                <li class="current">会员信息</li>
            </ul>
            <div class="J_panes">
                <div class="content_list pad_10">
                    <table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th width="120">所属模型 :</th>
                            <td>
                                {volist name='modelArr' id='vo'}
                                <input type="radio" name="model" id="m_{$key}" value="{$key}" {if condition="$key eq $info->getData('model')"}checked{/if}><label for="m_{$key}">{$vo}</label>
                                {/volist}
                            </td>
                        </tr>
                        <tr>
                            <th>用户名：</th>
                            <td><input type="text" name="username" id="username" class="input-text" size="20" value="{$info.username}"></td>
                        </tr>
                        <tr>
                            <th>密码: </th>
                            <td><input type="password" name="password" class="input-text" size="20"><span>不修改请留空</span></td>
                        </tr>

                        <tr>
                            <th>手机号:</th>
                            <td><input type="text" name="mobile" id="mobile" class="input-text" size="20" value="{$info.mobile}" /></td>
                        </tr>
                        <tr>
                            <th>邮箱:</th>
                            <td><input type="text" name="email" id="email" class="input-text" size="20" value="{$info.email}"></td>
                        </tr>
                        <tr>
                            <th>购房热线:</th>
                            <td><input type="text" name="buy_phone" class="input-text" value="{$info.buy_phone}" size="20"></td>
                        </tr>
                        <tr>
                            <th>所属公司:</th>
                            <td><input type="text" name="company" class="input-text" value="{$info.company}" size="20"></td>
                        </tr>
                        <tr>
                            <th>真实姓名:</th>
                            <td><input type="text" name="data[truename]" class="input-text" value="{$info.userInfo.truename}" size="20"></td>
                        </tr>
                        <tr>
                            <th>身份证号:</th>
                            <td><input type="text" name="data[bodycode]" class="input-text" value="{$info.userInfo.bodycode}" size="20"></td>
                        </tr>
                        <tr>
                            <th>证件照片:</th>
                            <td>
                                {notempty name='info.cardimg'}
                                <a href="{$info.cardimg}" target="_blank"><img src="{$info.cardimg}" alt="" width="100"></a>
                                {else /}
                                未上传
                                {/notempty}
                            </td>
                        </tr>
                        <tr>
                            <th>联系QQ:</th>
                            <td><input type="text" name="data[qq]" class="input-text" value="{$info.userInfo.qq}" size="20"></td>
                        </tr>
                        <tr>
                            <th>昵称 :</th>
                            <td><input type="text" name="nickname" class="input-text" size="20" value="{$info.nickname}"></td>
                        </tr>
                        <tr>
                            <th>生日:</th>
                            <td>
                                <input type="text" name="birthday" id="birthday" onclick="myCalendar();" class="date" value="{$info.userInfo.birthday}">
                            </td>
                        </tr>
                        <tr>
                            <th>联系地址:</th>
                            <td><input type="text" name="address" class="input-text" size="50" value="{$info.userInfo.address}"></td>
                        </tr>
                    </table>
                </div>
                <input type="hidden" name="id" value="{$info.id}">
            </div>
            <div class="mt10"><input type="submit" value="提交" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
        </div>
    </div>
</form>
{include file="public:footer" /}
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
    function myCalendar(id){
        WdatePicker({dateFmt:'MM-dd',el:id});
    }
    $(function() {
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#mobile").formValidator({onshow:'请填写手机号',onfocus:'请填写手机号'}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"手机号码格式错误"}).defaultPassed();
    });
</script>
</body>
</html>